Srcs := $(wildcard *.cc)
Exes :=$(patsubst %.cc,%,$(Srcs))
CC:= g++
CFLAGS := -Wall -g
ALL:$(Exes) 
%: %.cc
	$(CC) $^ -o $@ $(CFLAGS)
.PHONY:ALL clean rebuild  
clean:
	$(RM) $(Exes)
rebuild: clean ALL